<div class="pageContent">

    <form action="__CONTROLLER__/addAuth?callbackType=closeCurrent" method="post" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone);">
        <input type="hidden" name="role_id" VALUE="<{$Think.get.role_id|code}>"/>
        <div class="pageFormContent" layoutH="58">
            <foreach name='oneList' item="nList">
                <div class="unit">
                    <input type="checkbox" name="nodeId[]" value="<{$nList.id}>"  <?php echo in_array($nList['id'], $rList) ? "checked" : "" ?>/><{$nList.name}>
                   
                </div>
                <div class="unit">
                    <foreach name="twoList" item="tList">
                        <eq name="tList['p_id']" value="$nList['id']">
                            &nbsp;　　&nbsp;<input type="checkbox" name="nodeId[]" value="<{$tList.id}>"  <?php echo in_array($tList['id'], $rList) ? "checked" : "" ?>/><{$tList.name}><br/>
                        </eq>
                    </foreach>
                </div>
            </foreach>
        </div>
        <div class="formBar">
            <label style="float:left"><input type="checkbox" class="checkboxCtrl" group="nodeId[]"/>全选</label>
            <ul>
                <!--
                <li><div class="button"><div class="buttonContent"><button type="button" class="checkboxCtrl" group="nodeId[]" selectType="all">All check</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="checkboxCtrl" group="nodeId[]" selectType="none">All uncheck</button></div></div></li>
                -->
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="checkboxCtrl" group="nodeId[]" selectType="invert">
                                反选
                            </button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">提交</button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">取消</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>

